import random

class Utils(object):
  '''
  classdocs
  '''
  def __init__(self):
    self.numbers = []


  def generateNumbers(self, count):
    while count:
      num = random.randint(1,100)
      if not num in self.numbers:
        self.numbers.append(num)
        count = count -1
    ##self.numbers = sorted(self.numbers)
    return self.numbers


  def generateNumbersInRange(self, count,left,right):
    while count:
      num = random.randint(left,right)
      if not num in self.numbers:
        self.numbers.append(num)
        count = count -1
    ##self.numbers = sorted(self.numbers)
    return self.numbers
